<%@ page contentType="text/html; charset=UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path;

	String logicCssPath = basePath + "/app/survey/resource/logic/css/";
	String logicJsPath = basePath
			+ "/app/survey/resource/logic/script/";
	String logicImagePath = basePath
			+ "/app/survey/resource/logic/images/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>问卷设计</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<meta http-equiv="Content-Language" content="utf-8" />
		<meta http-equiv="Pragma" content="no-cache" />
		<meta http-equiv="expires" content="0" />

		<link href="<%=logicCssPath%>th-global.css" rel="stylesheet" type="text/css" />
		<link href="<%=logicCssPath%>inner.css" rel="stylesheet" type="text/css" />
		<link href="<%=logicCssPath%>default.css" rel="stylesheet" type="text/css" />
		<link href="<%=logicCssPath%>report.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript">
			var logicImgPath = '<%=logicImagePath%>';
			var ctx = '<%= basePath %>';
		</script>
		<script src="<%=basePath%>/common/jquery/jquery-1.8.3.min.js"></script>
		<script src="<%=basePath%>/common/single/jquery.json-2.2.min.js"></script>
		<script src="<%=basePath%>/common/single/ArrayUtil.js"></script>
		
		<script type="text/javascript" src="<%=logicJsPath%>common/logicParams.js"></script>
		<script type="text/javascript" src="<%=logicJsPath%>common/logicTool.js"></script>
		<script type="text/javascript" src="<%=logicJsPath%>common/logicAction.js"></script>
		<script type="text/javascript" src="<%=logicJsPath%>componet/logicProductor.js"></script>
		<script type="text/javascript" src="<%=logicJsPath%>componet/logicComponent.js"></script>
		<script type="text/javascript" src="<%=logicJsPath%>componet/logicPremise.js"></script>
		<script type="text/javascript">
			$(document).ready(function() {
				var params = {};
				params.surveyuuid = '${surveyuuid}';
				var logicProducer = $.fn.logicProducer();
				logicProducer.load({
					url: "<%=basePath%>/logic/loadLogicData.do",
					data: params
				});
			});
		</script>
	</head>
	<body>
		<div id="container">
			<div class="report">
				<div id="logicDIVNo" class="l-notice" style="display: none;">
					<p style="display: block;" id="logicDIVNoMsg" class="gray9">
						当前问卷未创建任何逻辑！
					</p>
					<div id="logicAddBox" class="logic-b-box">
						<div id="logicAdd_1" class="logic-b-btn t-center">
							<a href="javascript:void(0);" onclick="return false;"
								title="创建题逻辑">创建题逻辑</a>
						</div>
						<div id="logicAdd_2" class="logic-b-btn ml15 t-center">
							<a href="javascript:void(0);" onclick="return false;"
								title="创建选项逻辑">创建选项逻辑</a>
						</div>
						<div class="clear"></div>
					</div>
				</div>
				<div id="logicDIVNoQuestion" class="no-pro" style="display: none;">
					<span>当前问卷没有任何题目</span>
					<br>
					<a href="#" class="btn-b mt10">进入问卷设计</a>
				</div>
				<div id="logicDIVEdit" class="logic-editor" style="display: block;">
					<div class="logic-retrieval" style="display: none;">
						<div class="logic-b-btn">
							<a href="#">全部逻辑(25)</a>
						</div>
					</div>
				</div>
			</div>
			<div id="logicDIVSave" class="t-center" style="display: none;">
				<a href="javascript:void(0);" id="saveLogic" onclick="LogicParams.saveLogic();" class="btn-p">保存</a>
			</div>
		</div>
	</body>
</html>